<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import = "jdbc.JdbcDao" %>
<%@ page import = "email.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>重置密码</title>
</head>
<body>
<%
{
//JdbcDao mysql = new JdbcDao();
String emailAddr = request.getParameter("login_email");
if (emailAddr != null) {
	ForgetPassword.forgetPassword(emailAddr);
	out.println("<p>已发送密码重置邮件到您的邮箱，请查收</p>");
} else {
	String newPassword = request.getParameter("newpassword");
	if (newPassword != null)
		out.println("<p>已重置密码，您的新密码为： " + newPassword + "</p>");
}
}
%>



</body>
</html>